import { Component, Prop, Vue } from 'vue-property-decorator'
import { Attention } from '@entity/chat';
import AttentionModel from './model/Index.vue';
import { FriendInfo } from '@/assets/js/entity/user';

@Component({
    components: {
        AttentionModel
    }
})
export class AttentionBox extends Vue {

    /** 联系人列表 */
    @Prop({
        default: () => []
    })
    private attentionList: Array<Attention>;

    private selections: Array<FriendInfo> = [];

    /** 已选择联系人的下标 */
    private selected: number = 0;

    private display: boolean = false;

    private keyword: string = '';

    created() {
        this.selections = this.$store.getters.friendList();
        console.log(this.selections);
    }


}